<form method="post" enctype="multipart/form-data" target="_blank" id="form-order">
    <div class="table-responsive">
        <table class="table table-bordered table-hover">
            <thead>
            <tr>
                <td style="width: 1px;" class="text-center">
                <!--
                    <input type="checkbox" onclick="$('input[name*=\'selected\']').prop('checked', this.checked);">
                -->    
                </td>                
                <td class="text-right">
                    <a href="javascript:sort('spell_project_id');">ID</a>
                </td>
                <td class="text-left">
                    商品名称
                </td>
                <td class="text-center">
                    创建人
                </td>
                <td class="text-center">
                    <a href="javascript:sort('is_on_sale');">参与人数</a>
                </td>
                <td class="text-center">
                    <a href="javascript:sort('is_on_sale');">准备开始</a>
                </td>
                <td class="text-center">
                    <a href="javascript:sort('is_on_sale');">准备结束</a>
                </td>
                <td class="text-center">
                    <a href="javascript:sort('is_on_sale');">比赛结束</a>
                </td>
                <td class="text-center">
                    <a href="javascript:sort('is_on_sale');">所需人数</a>
                </td>
                
            </tr>
            </thead>
            <tbody>
            <volist name="projectList" id="list">
                <tr>
                    <td class="text-center">
                        <input type="hidden" name="shipping_code[]" value="flat.flat">
                    </td>
                    <td class="text-right">{$list.spell_project_id}</td>
                    <td class="text-left">{$list.goods_data.goods_name|getSubstr=0,33}</td>
                    <td class="text-left">{$list.user_data.nickname|getSubstr=0,33}</td>
                    <td class="text-left">{$list.user_count}</td>
					
					<td class="text-left">{$list.wait_start_time|date='Y-m-d H:i',###}</td>
					<td class="text-left">{$list.wait_end_time|date='Y-m-d H:i',###}</td>
					<td class="text-left">{$list.conduct_end_time|date='Y-m-d H:i',###}</td>
					<td class="text-left">{$list.goods_data.need_number}</td>
                                          
                </tr>
            </volist>
            </tbody>
        </table>
    </div>
</form>
<div class="row">
    <div class="col-sm-3 text-left"></div>
    <div class="col-sm-9 text-right">{$page}</div>
</div>
<script>
    // 点击分页触发的事件
    $(".pagination  a").click(function(){
        cur_page = $(this).data('p');
        ajax_get_table('search-form2',cur_page);
    });
	
    /*
     * 清除静态页面缓存
     */
    function ClearGoodsHtml(goods_id)
    {
    	$.ajax({
				type:'GET',
				url:"{:U('Admin/System/ClearGoodsHtml')}",
				data:{goods_id:goods_id},
				dataType:'json',
				success:function(data){
					layer.msg(data.info||data.msg||"操作失败");								 
				}
		});
    }
    /*
     * 清除商品缩列图缓存
     */
    function ClearGoodsThumb(goods_id)
    {
    	$.ajax({
				type:'GET',
				url:"{:U('Admin/System/ClearGoodsThumb')}",
				data:{goods_id:goods_id},
				dataType:'json',
				success:function(data){
					layer.msg(data.info||data.msg||"操作失败");							 
				}
		});
    }
    $(function () {
        $("[data-toggle='tooltip']").tooltip();
    })

</script>